//
// Created by liule on 2021/8/13.
//

#ifndef TANCHISHE_GAMEWINDOW_H
#define TANCHISHE_GAMEWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QLineEdit>
#include <QFontDatabase>
#include <QFile>
#include <qdebug.h>
#include "gamewidget.h"
#include "Ui_gamewindow.h"


QT_BEGIN_NAMESPACE
namespace Ui { class GameWindow; }
QT_END_NAMESPACE

class GameWindow : public QMainWindow {
Q_OBJECT

public:
    explicit GameWindow(QWidget *parent = nullptr);

    ~GameWindow() override;

private:
    Ui::GameWindow *ui;
    GameWidget *gameWidget;

    void initForm();
    void initStyle();
    void setStyle(const QString &str);

public slots:
    void startGame();
    void stopGame();

};


#endif //TANCHISHE_GAMEWINDOW_H
